package study;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;

/**
 * @Author 刘伟涛
 * @Date 2023/8/17 16:22
 **/
public class Demo4 {
    public static void main(String[] args) {
        String s = "1.20";
        s = new BigDecimal(s).stripTrailingZeros().toString();
        System.out.println(s);
        String a = "12";
        String b = "12";
        System.out.println(a.equals(b));
    }
}
